//
//  LCRequestManage.h
//  LendCash
//
//  Created by Mac mini on 2018/5/29.
//  Copyright © 2018年 zt. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

typedef void(^LCSuccessHandler)(id responseObject);
typedef void(^LCErrorHandler)(NSError *error);

@interface LCRequestManage : NSObject


+(instancetype)sharedInstance;

-(void)afPOST:(NSString *)url andParam:(NSDictionary *)param success:(LCSuccessHandler)success failture:(LCErrorHandler)failture;

-(void)afGET:(NSString *)url andParam:(NSDictionary *)param success:(LCSuccessHandler)success fail:(LCErrorHandler)fail;

-(void)uploadImagesWithUrl:(NSString *)url andImages:(NSArray *)images andParam:(NSDictionary *)param success:(LCSuccessHandler)success fail:(LCErrorHandler)fail;

@end
